/**
 * Copyright (c) 2003-2017 Ben Lau
 * All rights reserved.
 */
package chapter7;

/**
 * 代码清单7-5
 * 
 * @author liubin               
 *                              
 */                             
public class Code7_5 {          
              
	//静态内部类
	static class Parent{
		public static int A = 1;
		
		static {
			A = 2;
		}
	}
	
	//静态内部类
	static class Sub extends Parent {
		public static int B = A;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println(Sub.B);
	}

}
